{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
		<div class="content-tabs">
			<ol class="breadcrumb">
				<li>
					<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
				</li>
				<li><strong>银行卡记录</strong></li>
			</ol>
		</div>

	<div class="ibox-content">
		<ul class="nav nav-tabs">
			<li id="li-bar-busi">
				<a href="{:url('bankrec')}">商家银行卡</a>
			</li>
			<li id="li-bar-member">
				<a href="{:url('membankrec')}">会员银行卡</a>
			</li>
		</ul>
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('membankrec')}">
		<div class="form-group" >
			<span class="bspan">会员名称</span><input type="text" id="name" name="name" value="" placeholder="请输入商家名称" class="bank" />
			<select class="bank" name="type" id="type">
				<option value="0">状态</option>
				<option value="1">审核中</option>
				<option value="2">审核通过</option>
				<option value="3">审核退回</option>
			</select>
	        <span class="bspan">手机号</span><input type="text" id="mobile" name="mobile" value="" placeholder="请输入手机号" class="bank" />
	        <span class="bspan">时间</span> <input type="text" id='add_time' name='add_time'   onclick='WdatePicker()'  placeholder="开始时间" class="bank" />
            <input type="text" id='end_time' name='end_time'   onclick='WdatePicker()'  placeholder="结束时间" class="bank" />			
			<span  style="border-radius:0px;border:1px;"><button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> </span>
			<a href="#" onclick="check()" class="btn btn-primary btn-outline">导出信息</a></span>
		</div>
        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                            	<th class="text-center">会员名称</th>
                            	<th class="text-center">手机号</th>
                                <th class="text-center">开户名</th>
                                <th class="text-center">开户行</th>
                                <th class="text-center">银行卡号</th>
                                <th class="text-center">审核时间</th>
                                <th class="text-center">状态</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody id="list" class="text-center">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.nick_name}</td>
                        		<td>{$ad.mobile}</td>
                        		<td>{$ad.bank_username}</td>
                        		<td>{$ad.bank_account}</td>
                        		<td>{$ad.card_no}</td>     
                        		<td>{$ad.sh_time}</td> 
                        		<td>
                        			{if $ad.is_credentials == 1}
                        			审核中
                        			{elseif $ad.is_credentials == 2}
                        			审核通过
                        			{elseif $ad.is_credentials == 3}
                        			审核退回
                        			{/if}
                        		</td>
                        		<td>	
                        			<a href="{:url('adminmall/agent/detail2',['id'=>$ad.id])}" class="btn btn-primary bnt-sm ">
									<i class="fa fa-paste"></i> 详情</a>&nbsp;&nbsp;
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
$("#li-bar-member").addClass("active");
	var surl="adminmall/paylog/bankrec";
	setMenu(surl);
	function check(){
		var name = $('#name').val();
		var type = $('#type').val();
		var mobile = $('#mobile').val();
		var add_time = $('#add_time').val();
		var end_time = $('#end_time').val();
		window.location.href = "/adminmall/paylog/membankdc.html?name="+ name+"&type="+ type+"&mobile="+ mobile+"&add_time="+ add_time+"&end_time="+ end_time;
	}
</script>
{/block}